$(function(){
	$('.h-left').click(function(){
		window.history.back();
		
	})
	$('.mask').click(function() {
		$(this).fadeOut().find('.share').fadeOut();
	})
	
	$('.share_open').click(function(){
		$('.mask').fadeIn().find('.share').fadeIn();
	})
	
	console.log($('.h-left'))
	
	var _mySwiperlist = new Swiper('.share', {
		onInit:function(swiper){
			swiperAnimateCache(swiper);
			swiperAnimate(swiper);
		},
		onSlideChangeEnd:function(swiper){
			swiperAnimate(swiper);
		}
	})
	var swiper = new Swiper('.swiper-container', {
	    slidesPerView: 1,
	    paginationClickable: true,
	    spaceBetween: 30,
	    loop: true,
	    autoplay:1000
	});
	var app = new Vue({
		el:"#app",
		data:{
			list:null
		},
		created () {
			$.ajax({
				url:'../data/word.json',
				type: 'get',
				success: (res)=>{
					this.list = res;
				}
			})
		}
	})
	$.get("../data/word_two.json",function(res){
		var htmlstr = template("teplate", {list: res});
		$('.look_list').html(htmlstr);
	})
})
